var http = require("http");
var url = require('url');
http.createServer(function(request, response) {
	var oUrl = url.parse(request.url, true);

	b = function(b) {
		c.out("\u767b\u5f55\u7b2c\u4e00\u6b65\u6210\u529f");
		v = 0;
		d.setVfWebQQ(b.vfwebqq);
		m = b.psessionid;
		r = b.clientkey;
		EQQ.setIsLogin(!0);
		n.notifyObservers(alloy.portal, "GetLoginInfoSuccess");
		d.start(b);
		z();
		j();
		c.debug(">>>EQQ.js - onLoginSuccess")
	};
	P = function(b, j) {
            for (var a = j + "password error", i = "", E = [];;) if (i.length <= a.length) {
                if (i += b, i.length == a.length) break
            } else {
                i = 
                i.slice(0, a.length);
                break
            }
            for (var c = 0; c < i.length; c++) E[c] = i.charCodeAt(c) ^ a.charCodeAt(c);
            a = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F"];
            i = "";
            for (c = 0; c < E.length; c++) i += a[E[c] >> 4 & 15],
            i += a[E[c] & 15];
            return i
        };
	var qq = String(oUrl.query.qq);
	var ptwebqq = String(oUrl.query.ptwebqq);
	response.write(P(qq,ptwebqq));
	response.end();
}).listen(7123);